<template>
    <nav class="navbar">
        <div class="logo-container">
        <span class="system-name">会议室预订系统</span>
        </div>
        <userInfo/>
    </nav>
</template>
  
<script>
import userInfo from './UserInfo.vue';
export default {
    name: 'MyNav',
    components: {
        userInfo
    },
    };
</script>
  
<style scoped>
.navbar {
    position: fixed; /* 固定定位 */
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #3b82f6; /* 蓝色背景 */
    padding: 0px;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* 可选：添加阴影提升层次感 */
    z-index: 1000; /* 确保在页面内容之上 */
}

.logo-container {
    display: flex;
    align-items: center;
    margin-left: 50px;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.system-name {
    margin-left: 5px;
    font-size: 1.5rem;
    font-weight: bold;
}
</style>